import { useState } from 'react';
import viteLogo from '/vite.svg';
import '@/common/Dog';
import './App.less';

function App() {
  const [count, setCount] = useState<number>(0);

  return (
    <div className="App">
      <div>
        <a href="https://vitejs.dev" target="_blank" rel="noreferrer">
          <img src={viteLogo} className="logo" alt="Vite logo" />
        </a>
      </div>
      <h1>Vite + React + ts</h1>
      <div className="card">
        <button
          onClick={() => {
            setCount((count) => count + 1);
            console.log(import.meta.env.VITE_ENV);
          }}
        >
          count is {count}
        </button>
      </div>
      <p className="read-the-docs">Click on the Vite and React logos to learn more</p>
    </div>
  );
}

export default App;
